layui.config({
    base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
    index: 'lib/index' //主入口模块
}).use(['index', 'form'], function(){
    var $ = layui.$,
        form = layui.form,
        element = layui.element;

    var userId = $('#userId').val();
    if(userId != ''){
        $('.userId').hide();
    }else{
        $('.userId').show();
    }

    form.verify();

});